package com.hry.store.dao;

import com.hry.store.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper {
    int deleteByPrimaryKey(Integer orderId);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer orderId);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    List<Order> getOrders(@Param("userEmail") String userEmail, @Param("orderNo") Long orderNo);

    List<Order> selectByOrderNo(Long orderNo);

    List<Order> getByUserEmail(String userEmail);

    List<Order> getOrder(@Param("userEmail") String userEmail, @Param("orderNo") Long orderNo);
}